home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc302emb.zip / LIBCF / PREFIX.ASM < prev    next >
Assembly Source File  |  1994-03-18  |  623b  |  19 lines

  1. *
  2. * DDS MICRO-C C-FLEA Runtime Library - Prefix file
  3. *
  4. * Copyright 1991-1994 Dave Dunfield
  5. * All rights reserved.
  6. *
  7.     ORG    $1000        Place code in memory here
  8. * Begin execution here... Setup stack, zero heap & call main()
  9.     LD    #*        Stack below here
  10.     TAS            Set up stack
  11.     CLR            Get zero
  12.     STB    ?heap        Zero heap
  13.     CALL    main        Run main program
  14. * Most embedded programs will never return or exit, however if they
  15. * do, this section of code should do something appropriate, either
  16. * restart the program, or stop the machine. For this system, we will
  17. * simply freeze by entering an infinite loop.
  18. exit    SJMP    *        Loop forever
  19.